<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>
<body>
<h1>添加新商品</h1>
<form action="/products/add" method="post">
    <label for="name">名称:</label>
    <input type="text" id="name" name="name" required>
    <br>
    <label for="description">描述:</label>
    <input type="text" id="description" name="description" required>
    <br>
    <label for="price">价格:</label>
    <input type="number" id="price" name="price" step="0.01" required>
    <br>
    <label for="stock">库存:</label>
    <input type="number" id="stock" name="stock" required>
    <br>
    <button type="submit">提交</button>
</form>
<a href="/products/">返回商品列表</a>
</body>
</html>
